14. Solution: Actor Query
Solution Explanation
Correct Answer: Look at the TVContract and pick a different URI
If you are changing the content you are trying to access in the ContentProvider, you need to change the URI, so the first answer is correct. To query for actors, your code might look like this:
ContentResolver resolver = getContentResolver();
mData = resolver.query(TVContract.Actors.CONTENT_URI, null, null, null, null);
Why the Other Answers Were Incorrect
Incorrect Answer: Change app permissions
You are not accessing a different content provider and because you already are displaying TV shows, you must have read access, so you do not need to change permissions to query for a list of actors.
Incorrect Answer: Change the method called on the ContentResolver
The action you are taking in both cases is reading some data, which is the query method. You would change the method called on the ContentResolver if you wanted to change the type of action you were doing, for example, adding data instead of reading data. But you don’t want to do that, so no need to change this.
Incorrect Answer: Change the ContentResolver to the correct ContentProvider to access the data directly
You always need to access a content provider using the content resolver, so you should never attempt to do this.